package com.example.shop_2208.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shop_2208.R
import com.example.shop_2208.entity.CarEntity

class OrderAdapter:BaseQuickAdapter<CarEntity,BaseViewHolder>(R.layout.item_order) {
    override fun convert(holder: BaseViewHolder, item: CarEntity) {
        holder.setText(R.id.order_desc,item.goods_desc)
        holder.setText(R.id.order_count,"X${item.count}")//数量
        holder.setText(R.id.order_price,"￥${item.goods_default_price}")//单价
    }
}